package com.metaverse.backend.web;

import com.metaverse.backend.domain.LiveGift;
import com.metaverse.backend.domain.LiveLike;
import com.metaverse.backend.dto.PageQuery;
import com.metaverse.backend.service.LiveGiftService;
import com.metaverse.backend.service.LiveLikeService;
import lombok.AllArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 直播礼物数据
 */
@AllArgsConstructor
@RestController
@RequestMapping("liveGift")
public class LiveGiftController extends BaseController {

    private LiveGiftService liveGiftService;


    @PostMapping("/all")
    public Page<LiveGift> all(@RequestBody PageQuery pageQuery) {
        return liveGiftService.all(pageQuery);
    }

}
